/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: LoginController
 * @Package com.rx.uua.controller
 * @Description: 登录
 * @author: 陈锦韬
 * @date: 2021\6\26 0026
 * @version V1.0
 * @Copyright: 2021 陈锦韬  All rights reserved.
 */
package com.rx.uua.controller;

import com.rx.core.base.RxBaseConstant;
import com.rx.core.base.RxBaseController;
import com.rx.core.data.UrlAnalyse;
import com.rx.core.dbase.mutil.param.DoubleInnerParameter;
import com.rx.core.enm.RX_VALID;
import com.rx.uua.dao.UuaOrgInfoMapper;
import com.rx.uua.service.SystemService;
import com.rx.uua.service.UuaCommonService;
import com.rx.uua.vo.ChangePasswordVo;
import com.rx.uua.vo.UuaLocalInfo;
import com.rx.uua.vo.UuaOrgInfo;
import com.rx.uua.vo.UuaRelGroup;
import com.rx.uua.vo.common.DictVo;
import com.rx.uua.vo.relation.DoubleUuaOrgInfo;
import com.rx.uua.vo.relation.DoubleUuaUserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: Administrator
 * @Description: 系统管理
 * @date: 2021\6\26 0026
 */
@RestController
@RequestMapping(RxBaseConstant.CONFIG_COMMON_API)
public class UuaCommonController extends RxBaseController {

    @Autowired
    UuaCommonService uuaCommonService;

    @PostMapping("/top-org-search")
    public Object topOrgSearch(@RequestBody UuaOrgInfo uuaOrgInfo) throws IllegalAccessException, InstantiationException {
      return  uuaCommonService.topOrgSearch(uuaOrgInfo);
    }

    @PostMapping("/dict")
    public Object dict(@RequestBody List<DictVo> dictVoList) throws IllegalAccessException, InstantiationException, NoSuchFieldException {
        return  uuaCommonService.dict(dictVoList);
    }

    @PostMapping("/local-list")
    public Object localList(@RequestBody UuaLocalInfo uuaLocalInfo){
        return  uuaCommonService.localList(uuaLocalInfo);
    }
}
